/*
 * ===================================================
 *
 *       Filename:  game.h
 *
 *       Version:  1.0
 *       Created:  10/21/2011 10:59:13 PM
 *       Compiler:  gcc
 *
 *       Author:  durand_y, <yoan.durand@gmail.com>
 *
 * ===================================================
 */
#ifndef GAME_H_
# define GAME_H_

# include <stdlib.h>
# include <stdio.h>
# include <SDL/SDL.h>
# include <SDL/SDL_image.h>
# include "struct.h"
# include "weapon.h"
# include "monster.h"
# include "mlist.h"

int      game(SDL_Surface	*screen);

void     draw_rect(int          pos_x,
		   int          pos_y,
		   SDL_Surface  *rec,
		   SDL_Surface  *screen);
int background_end();

int background_update(SDL_Surface *area);

int background_init(int         width,
		    int         height);

int player_update(SDL_Surface	*area);

int player_init(int             x,
		int             y);

extern s_player    *g_player_1;
extern s_back      *g_back;
extern s_weapon    **g_weapons;
char               **g_skin_list;
extern  s_wlist    *g_wlist;

#endif /* !GAME_H_ */
